<!DOCTYPE html>
<#assign dicSelect=JspTaglibs["http://www.casic304.cn/dicSelect"] />
<#assign secSelect=JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<html>
<head>
    <meta charset="utf-8">
    <title>发动机试车基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <!--<link rel="stylesheet" href="/qbdmsStatic/style/forms/currencyCss.css">-->
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <#if isClose == 'true'>
        <style>
            .listBody .qbdms-bodyDiv{padding: 0 }
            body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
            .treeFormPreview{position: unset;}
        </style>
    </#if>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body" >
        <#if isClose != 'true'><div class="qbdms-formTitle" >发动机试车信息 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="formPreview layui-form "  requrl="${ctx}/qbdms/wFadongji/get"  lay-filter="wFadongjiDataForm">
            <div class="" style="width: 100%;overflow-x: auto">

                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">试验名称<span style="color: red;">*</span></td>
                        <td name='symc'></td>
                        <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@secSelect.sec_select required=true data_src=1 name="secret"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">所属型号<span style="color: red;">*</span></td>
                        <td name='ssxh'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">发动机名称<span style="color: red;">*</span></td>
                        <td name='fdjmc'></td>
                        <td class="qbdms-zeroTable-lable">发动机代号<span style="color: red;">*</span></td>
                        <td name='fdjdh'></td>
                        <td class="qbdms-zeroTable-lable">发动机编号<span style="color: red;">*</span></td>
                        <td name='fdjbh'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">研制阶段<span style="color: red;">*</span></td>
                        <td name=''> <@dicSelect.dic name="yzjd" verify="required" reqtext="研制阶段是必填项" nodeKey="fdjsjyzjd" /></td>
                        <td class="qbdms-zeroTable-lable">标识代码<span style="color: red;">*</span></td>
                        <td name='bsdm'></td>
                        <td class="qbdms-zeroTable-lable">设计单位<span style="color: red;">*</span></td>
                        <td name='sjdw'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">生产单位<span style="color: red;">*</span></td>
                        <td name='scdw'></td>
                        <td class="qbdms-zeroTable-lable">试车单位<span style="color: red;">*</span></td>
                        <td name='sjsw'></td>
                        <td class="qbdms-zeroTable-lable">试车日期<span style="color: red;">*</span></td>
                        <td name='sjrq'></td>
                        <input type="hidden" name="sjrq" placeholder="请输入" lay-verify="required"
                               autocomplete="off" class="layui-input dateTimeFiled input-right time-init"
                               maxlength="50"  >
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">试车地点<span style="color: red;">*</span></td>
                        <td name='scdd'></td>
                        <td class="qbdms-zeroTable-lable">试车台体<span style="color: red;">*</span></td>
                        <td name='sctt'></td>
                        <td class="qbdms-zeroTable-lable">温度(℃)<span style="color: red;">*</span></td>
                        <td name='wendu'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">湿度(%)<span style="color: red;">*</span></td>
                        <td name='shidu'></td>
                        <td class="qbdms-zeroTable-lable">气压(MPa)<span style="color: red;">*</span></td>
                        <td name='qiya'></td>
                        <td class="qbdms-zeroTable-lable">工作时间(S)<span style="color: red;">*</span></td>
                        <td name='gzsj'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">参数获得率<span style="color: red;">*</span></td>
                        <td name='cshdl'></td>
                        <td class="qbdms-zeroTable-lable">结构完整性<span style="color: red;">*</span></td>
                        <td name='jgwzx'></td>
                        <td class="qbdms-zeroTable-lable">试验结果<span style="color: red;">*</span></td>
                        <td name=''><@dicSelect.dic name="sjjg"  nodeKey="fdjsjjg" /></td>
                    </tr>
                    <tr>
                        <td  class="qbdms-zeroTable-lable">试车目的<span style="color: red;">*</span></td>
                        <td colspan="5" name='scmd'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">技术状态<span style="color: red;">*</span></td>
                        <td  colspan="5" name='jszt'></td>
                    </tr>
                    <tr>
                        <td  class="qbdms-zeroTable-lable">试验状态<span style="color: red;">*</span></td>
                        <td  colspan="5" name='syzt'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">测试项目<span style="color: red;">*</span></td>
                        <td  colspan="5" name='csxm'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">数据分析结果<span style="color: red;">*</span></td>
                        <td  colspan="5" name='sjfxjg'></td>
                    </tr>

                    </tbody>
                </table>

            </div>
            <input type="hidden" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                   maxlength="50" fieldname="id">
            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="closeWindow layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
        </form>
    </div>
</div>

<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base:  serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','common','laydate','jquery','propsHandle'], function () {
        var laydate = layui.laydate;
        var common = layui.common;
        var $ = layui.jquery;
        var dateTimeFiledLen = $(".dateTimeFiled");
        for(var i=0;i<dateTimeFiledLen.length;i++){
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                ,type: 'date'
                ,trigger: 'click'
            });
        }

        var propsHandle = layui.propsHandle;
        var defProps = {
            //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
            viewMould: 'moulds/', // 组件模块 存放文件 *****
            selectorBtn: '.selectorBtn'
        };
        var temQuery = new propsHandle();  // 实例化模板功能部分
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });

        //关闭当前页面
        $(".closeWindow").click(function () {
            if ("${isClose}" == "true") {
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            }
            window.location.href =  '${ctx}/qbdms/wFadongji/view/list';
        });


        var id = "${id}";
        common.updateForm({
            name:'wFadongjiDataForm',
            idValue:id,
            primary:"id"
            ,getCallback:function(data){
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span>" +
                //     "<span class='qbdms-TBinformationText'>【"+data.data.filldept+"   | "+data.data.fillman+"  | "+data.data.filldate+"】</span>");
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【"+data.data.filldept+" | "+data.data.fillman+"  | "+data.data.filldate+"】</td>");

            }
        });

        $("body *").not(".closeWindow").attr("disabled","disabled");
        if ("${isClose}" == "true") {
            $('.closeWindow').hide();
        }

    });
</script>
</body>
</html>